package com.itany.corejava.code08_常用类.泛型练习;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月16日 11:51
 */
public class Test {
    public static void main(String[] args) {
        Pupil pupil=new Pupil("雷雨净",10,150);
        Pupil pupil2=new Pupil("宋晨峰",12,160);
        String name=pupil.show(pupil2);
        System.out.println(name);

        College college=new College("韩智恩","打游戏","男","清华大学");
        College college2=new College("马凡娟","看书","女","北京大学");
        String showName=college.show(college2);
        System.out.println(showName);

    }





}
